package com.demo.Rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "queuel-direct-test")
public class DirectExchangeConsumer {
    @RabbitHandler
    public void consumerDirectMsg(String meaasge){
        System.out.println("收到消息"+meaasge);
    }
}